<?php



namespace App\Services\Order\Providers;

use App\Services\Order\Interfaces\CouponServiceInterface;
use App\Services\Order\Services\CouponService;
use App\Services\Company\Interfaces\CompanyServiceInterface;
use App\Services\Company\Services\CompanyService;
use Illuminate\Support\ServiceProvider;
use App\Services\Order\Interfaces\PromoCodeServiceInterface;
use App\Services\Order\Services\PromoCodeService;
use App\Services\Order\Interfaces\OrderServiceInterface;
use App\Services\Order\Services\OrderService;

class OrderServiceRegisterProvider extends ServiceProvider
{
    public function register()
    {
        $this->app->instance(OrderServiceInterface::class, $this->app->make(OrderService::class));
        $this->app->instance(PromoCodeServiceInterface::class, $this->app->make(PromoCodeService::class));
        $this->app->instance(CouponServiceInterface::class, $this->app->make(CouponService::class));
    }
}
